import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import mutation from "@/store/mutations";
import action from "@/store/actions";
// import getter from "@/store/getters";
const state={
    cartList:[]
}
const store =new Vuex.Store({
    state:state,
    mutations:mutation,
    actions:action,
    getters:{
        cartLength(state){
            return state.cartList.length
        }
    }
})
export default store
